import basicContainer from '../components/basic-container/main'
import thirdRegister from '../components/third-register/main'
import empty from '../components/empty/empty'
import detailbox from '../components/detailbox/detailbox.vue'
import chooseTemplate from '../components/chooseTemplate/chooseTemplate.vue'
import steps from '../components/steps/steps.vue'
import showhistory from '../components/showhistory/showhistory.vue'
import print from '../components/print/print.vue'
// import workFlow from '../components/work-flow/work-flow.vue'    没用
import workFile from '../components/work-file/work-file.vue'
import creatFile from '../components/creat-file/creat-file.vue'
import creatFlow from '../components/creat-flow/creat-flow.vue'
//   工作流
import processRecord from "../components/process-record"
import previewProcessRecord from "../components/preview-process-record"
import checkProcessRecord from "../components/check-process-record"
import ProcessRecordFile from "../components/process-record-file"

import previewFile from '../components/preview-file'
import checkFile from '../components/check-file'

// 解密
import encryption from '../components/encryption'

//  选择文件
import specificationFile from "@/components/specification-file"
import logFile from "@/components/log-file"

import fileGloba from "@/components/file-globa"

import workPrint from '../components/work-print'

function plugin(Vue) {
  if (plugin.installed) {
    return
  }
  //注册全局容器
  Vue.component('specification-file', specificationFile) // 过程 规范文件 选择
  Vue.component('log-file', logFile)  // 过程 记录文件 选择
  Vue.component('file-globa', fileGloba)   // 前5 文件类 查看
  Vue.component('process-record-file', ProcessRecordFile)  //   文件 审核批准 工作流
  Vue.component('process-record', processRecord)    //
  Vue.component('preview-process-record', previewProcessRecord)   //  提交 预览 工作流
  Vue.component('check-process-record', checkProcessRecord)   //  过程  审核 批准 工作流
  Vue.component('basicContainer', basicContainer)
  Vue.component('thirdRegister', thirdRegister);
  Vue.component('empty', empty);
  Vue.component('detailbox', detailbox);
  Vue.component('chooseTemplate', chooseTemplate);  //  文件模板
  Vue.component('showhistory', showhistory);  //   审批历史
  Vue.component('print', print);  //   打印
  Vue.component('steps', steps);  //  提交弹窗
  // Vue.component('work-flow', workFlow);  //没用
  Vue.component('creat-flow', creatFlow);   // 过程工作流
  Vue.component('work-file', workFile);    //  过程 查看文件信息
  Vue.component('creat-file', creatFile);  //  过程 创建 文件信息
  Vue.component('preview-file', previewFile);  //  过程 提交 预览 文件信息
  Vue.component('check-file', checkFile); //  过程审核 批准 文件信息
  Vue.component('work-print', workPrint);  //  过程 文件打印
  Vue.component('encryption', encryption);  //  文件解密


}
export default plugin
